import Layout from '@/views/layout/index'

// 预约
const appointRouter = {
    path: '/appoint',
    component: Layout,
    name: 'appoint',
    meta: {
        title: '预约记录',
        icon: 'iconfont icon-yuyue'
    },
    redirect: "/appoint/manage",
    children: [{
        path: 'manage',
        name: 'appointManage',
        component: () => import('@/views/appoint/manage'),
        meta: {
            title: '预约记录',
            icon: 'iconfont icon-yuyue',
            api: ['appoint'],
            authority: ['list'],
        },
        checkedList: [],
        rights: [{
                value: 'list',
                label: '列表'
            },{
                value: 'edit',
                label: '编辑'
            }]
    },{
      path: 'detail',
      name: 'appointDetail',
      component: () => import('@/views/appoint/detail'),
      hidden: true,
      meta: {
        title: '商机详情',
        api: ['appoint'],
        authority: ['list', 'edit']
      }
    }]
}

export default appointRouter